var dom = document.getElementById('content-left1');
    var myChart = echarts.init(dom, 'dark', {
      renderer: 'canvas',
      useDirtyRect: false
    });

    //var myChart = echarts.init(document.getElementById("content-left1"),"dark");

    var app = {};

    var option;

    option = {
      title: {
        text: '全球海洋生物量',
        textStyle: {
			    fontSize:14//加
				//color:white",
			},
      },
      tooltip: {
        trigger: 'axis',
        axisPointer: {
          type: 'shadow'
        }
      },
      legend: {},
      grid: {
        left: '1%',/*3*/
        right: '8%',/*4*/
        bottom: '8%',/*3*/
        containLabel: true
      },
      xAxis: {
        type: 'value',
        boundaryGap: [0, 0.01]
      },
      yAxis: {
        type: 'category',
        data: ['巴西',  '美国', '印度', '中国', '全球']
      },
      series: [
        {
          name: '2022',
          type: 'bar',
          data: [19325, 31000, 121594, 134141, 281807]
        },
        {
          name: '2023',
          type: 'bar',
          data: [18203, 29034, 104970, 131744, 230230]
        }
      ]
    };

//    if (option && typeof option === 'object') {
//      myChart.setOption(option);
//    }
    myChart.setOption(option);
    window.addEventListener('resize', myChart.resize);